package thomas.javase.java8.service;

import thomas.javase.java8.interfaces.DailyPay;

public class PayService {
    private DailyPay dailyPay;
    public PayService(DailyPay dailyPay){
        this.dailyPay = dailyPay;
    }

    public void dailyPay(String customer, int amount){
         this.dailyPay.pay(customer, amount);
         System.out.println("$" + amount + " have been paid to " + customer);
    }
}
